<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Login</title>
    <style type="text/css">
        *{ margin:0; padding:0;}
        body{ font-family:Verdana, Arial, Helvetica, sans-serif; font-size:12px; color:#444; background:url("/img/admin/login_bg.jpg") no-repeat top center;}
        #frame{ margin:0 auto; width:800px; height:400px; position:relative;}
        #inputs{ width:400px; height:180px; position:absolute; left:300px; top:216px;}
        #inputs table tr{ height:36px;}
        .inp{ width:118px; height:26px; line-height:26px; border-left:1px solid #8cb7e1; border-top:1px solid #8cb7e1; border-right:1px solid #e3f0fc; border-bottom:1px solid #e3f0fc;}
        .input_verify{ width:60px; background:#fff url("/img/admin/login-icon.gif") no-repeat 0 -99px; padding-left:2em;}
        .un{ background:#fff url("/img/admin/login-icon.gif") no-repeat; padding-left:2em;}
        .pwd{ background:#fff url("/img/admin/login-icon.gif") no-repeat 0 -50px; padding-left:2em;}
    </style>
</head>

<body onload="if(top!==self){top.location.href='<?php echo U('admin/auth/login');?>';}">
<div id="frame">
    <div id="inputs">
        <form action="<?php echo U('admin/auth/login');?>" method="post" name="Login" onsubmit="return checkForm();">
            <table>
                <?php if(isset($error_msg)){?>
                <tr>
                    <td></td>
                    <td><?php echo $error_msg;?></td>
                </tr>
                <?php }?>
                <tr>
                    <td align="right">Account：</td>
                    <td><input type="text" autocomplete="off" class="inp un" name="username" /></td>
                </tr>
                <tr>
                    <td align="right">Password：</td>
                    <td><input type="password" class="inp pwd" name="password" /></td>
                </tr>
                <tr>
                    <td align="right">Verify Code：</td>
                    <td><input name="verify" type="text" autocomplete="off" class="inp input_verify" onkeyup="this.value=this.value.toUpperCase()" />&nbsp;<img id="verifyImg" src="<?php echo U('admin/auth/verify');?>" border="0" align="absmiddle" onclick="javascript:fleshVerify()" style=" cursor:pointer"></td>
                </tr>
                <tr>
                    <td><input type="hidden" name="formact" value="dologin" /></td>
                    <td><input type="image" src="/img/admin/login_btn.gif" name="submit"/></td>
                </tr>
            </table>
        </form>
    </div>
</div>
<script type="text/JavaScript">
    function SetFocus(){
        if (document.Login.username.value=="") document.Login.username.focus();
        else document.Login.username.select();
    }
    function fleshVerify(){
        var timenow = new Date().getTime();
        document.getElementById('verifyImg').src='<?php echo U("admin/auth/verify");?>/'+timenow;
    }
    function checkForm(){
        if(document.Login.username.value==""){alert('Account');return false;}
        if(document.Login.password.value==""){alert('Password');return false;}
        if(document.Login.verify.value==""){alert('Verify Code');return false;}
    }
    SetFocus();
</script>
</body>
</html>